package com.kbs.im.client.handler;

import com.kbs.im.common.protocol.packet.response.DeviceRegisterResponsePacket;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 设备注册响应处理
 *
 * @author zhangzhang
 */
@ChannelHandler.Sharable
public class DeviceRegisterResponseHandler extends SimpleChannelInboundHandler<DeviceRegisterResponsePacket> {

    public static final DeviceRegisterResponseHandler INSTANCE = new DeviceRegisterResponseHandler();

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, DeviceRegisterResponsePacket msg) throws Exception {
        System.out.println(msg.getCode() + "_" + msg.getMsg());
    }

}
